import time
import os
import sys

def main(argv):
    if argv!=[]:
        t=int(argv[0])
    else:
        sys.exit(0)
    
    os.system("adb devices")
    while True:
        if time.perf_counter()>t:
            print('\a')
            break
        # os.system("adb shell input tap 660 100")
        # os.system("adb shell input tap 370 660")
        os.system("adb shell input tap 370 1110")
        os.system("adb shell input tap 370 1150")
        time.sleep(3)


if __name__ == "__main__":
    main(sys.argv[1:])
